<template>
	<view>
		<view class="info">
			<view class="title">
				{{info.name}}
			</view>
			<view class="bottom">
				<view class="price">
					￥{{info.salePrice}} <text>￥{{info.listPrice}}</text>
				</view>
				<view class="right">
					{{info.learnTotal}}人正在学
				</view>
			</view>
		</view>
		<view class="introduce container">
			<!-- <image class="banner" src="@/static/loading.png" mode=""></image> -->
			{{info.content}}
		</view>
	</view>
</template>

<script>
	export default {

		data() {
			return {

			}
		},
		props: {
			info: {
				default: {}
			}
		},
		methods: {}
	}
</script>

<style lang="scss">
	.info {
		margin-bottom: 50rpx;
		background-color: #fff;
		padding: 20rpx 40rpx;

		.title {
			font-weight: bold;
			padding: 10rpx 0;
		}

		.bottom {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 24rpx;
			color: #999;



			.price {
				color: red;
				font-weight: bold;
				font-size: 32rpx;

				text {
					font-size: 24rpx;
					color: #999;
					font-weight: normal;
					text-decoration: line-through;
				}
			}

			.right text {
				font-size: 24rpx;
				padding: 6rpx 10rpx;
				border: 2rpx solid $assist-color2;
				color: $assist-color2;
				border-radius: 100px;
			}
		}
	}

	.introduce {
		font-size: 28rpx;
	}
</style>